[PATCH] MySQL: Free the results when QSqlQuery::finished() is called
authorDaniel Vrátil <dvratil@kde.org>
Sat, 1 Dec 2018 16:56:41 +0000 (17:56 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 27 Feb 2020 13:52:19 +0000 (13:52 +0000)
commit9b7ed860d5e0bbd240888147852a22be867989e7
tree69c8479cc3dc98927a61c7b2200c6d4d9abd2e4c
parent9f61894cb6d55ada5555ef3280207578563f87a5
[PATCH] MySQL: Free the results when QSqlQuery::finished() is called

Calling mysql_stmt_free_result() frees the results of the last
executed query while keeping the prepared statement valid. This
allows one to keep around prepared QSqlQueries without the overhead
of keeping all the results in memory.

Change-Id: I4589e90857cc4e9a6f9612799bfca967a67e2ab2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Gbp-Pq: Name mysql_free_results_when_qsqlquery_finished_is_called.patch
src/plugins/sqldrivers/mysql/qsql_mysql.cpp